Struct STaskMethodBuilder<T>
Assembly: WaaS.Core.dll
View Source
Declaration
public struct STaskMethodBuilder<T>
Properties
Task
View Source
Declaration
public STask<T> Task { get; }
Methods
Create()
View Source
Declaration
public static STaskMethodBuilder<T> Create()
Returns
Start<TStateMachine>(ref TStateMachine)
View Source
Declaration
public void Start<TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine
Parameters
Type | Name |
---|---|
<TStateMachine> | stateMachine |
Type Parameters
TStateMachine
SetStateMachine(IAsyncStateMachine)
View Source
Declaration
public void SetStateMachine(IAsyncStateMachine stateMachine)
Parameters
Type | Name |
---|---|
System.Runtime.CompilerServices.IAsyncStateMachine | stateMachine |
SetException(Exception)
View Source
Declaration
public void SetException(Exception exception)
Parameters
Type | Name |
---|---|
System.Exception | exception |
SetResult(T)
View Source
Declaration
public void SetResult(T result)
Parameters
Type | Name |
---|---|
<T> | result |
AwaitOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter, ref TStateMachine)
View Source
Declaration
public void AwaitOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : INotifyCompletion where TStateMachine : IAsyncStateMachine
Parameters
Type | Name |
---|---|
<TAwaiter> | awaiter |
<TStateMachine> | stateMachine |
Type Parameters
TAwaiter
TStateMachine
AwaitUnsafeOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter, ref TStateMachine)
View Source
Declaration
public void AwaitUnsafeOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : ICriticalNotifyCompletion where TStateMachine : IAsyncStateMachine
Parameters
Type | Name |
---|---|
<TAwaiter> | awaiter |
<TStateMachine> | stateMachine |
Type Parameters
TAwaiter
TStateMachine